<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-style-type" content="text/css" />
<title>Web Socket test</title>
<script language="javascript" type="text/javascript" src="scripts/prototype-1.6.0.3.js"></script>
<script language="javascript" type="text/javascript" src="scripts/web_socket.js"></script>
</head>
<body>
<p><button onclick="javascript:gateway.initSocket();">Initiate socket</button></p>
<p>application regex:
	<input id="appname" type="text" value="/app" />
	<button onclick="javascript:gateway.register($('appname').value);">REGISTER</button>
	<button onclick="javascript:gateway.unregister($('appname').value);">UNREGISTER</button>
</p>
<p><button onclick="javascript:gateway.request();">REQUEST</button></p>
<p><button onclick="javascript:gateway.unrequest();">UNREQUEST</button></p>
progress: <div id="progress" style="border: 3px coral solid;"></div>
sent: <div id="sent" style="border: 3px coral solid;"></div>
received: <div id="received" style="border: 3px coral solid;"></div>
error: <div id="error" style="border: 3px coral solid;"></div>
</body>
</html>
